import request from '@/utils/request'

export function getks(query) {
    return request({
      url: '/api/hospital/departmentTable/kssousuo',
      method: 'get',
      params: query
    })
  }

export function getdep(query){
  return request({
    url: '/api/hospital/Department/getList',
    method: 'get',
    params: query
  })
}

export function getList(query) {
    return request({
      url: 'api/hospital/departmentTable/getList',
      method:'get',
      params:query
    })
}

  export function yssousuo(query) {
    return request({
      url: '/api/hospital/doctorTable/yssousuo',
      method: 'get',
      params: query
    })
  }

  export function addgh(query) {
    
    return request({
      url: '/api/hospital/registrationTable/insertregistration',
      method: 'post',
      params: query
    })
  }

  export function adduser(query) {
    
    return request({
      url: '/api/hospital/userTable/insertuser',
      method: 'post',
      params: query
    })
  }

  export function ghlist(query) {
    
    return request({
      url: '/api/hospital/registrationTable/guahaolist',
      method: 'get',
      params: query
    })
  }

  export function chaxunlist(query) {
    
    return request({
      url: '/api/hospital/registrationTable/chaxunlist',
      method: 'get',
      params: query
    })
  }

  export function chaxunid(query) {
    
    return request({
      url: '/api/hospital/registrationTable/chaxunid',
      method: 'get',
      params: query
    })
  }